//
//  HomeCommonCell.swift
//  edu
//
//  Created by karlzhou on 15/11/3.
//  Copyright © 2015年 karlzhou. All rights reserved.
//

import UIKit

class HomeCommonCell: UICollectionViewCell {
    @IBOutlet weak var imageView: UIImageView!
   // @IBOutlet weak var descriptionLb: UILabel!
    @IBOutlet weak var subTitile: UILabel!
    @IBOutlet weak var titile: UILabel!
    
    
    func initView(data:HomePage) {
       
        self.imageView.clipsToBounds = true
        self.imageView.autoresizingMask = .FlexibleWidth
        print("content mode:\(self.imageView.contentMode.rawValue)")
        self.imageView.sd_setImageWithURL(NSURL(string: data.picUrl))

       // self.descriptionLb.text = data.description
        self.titile.text = data.title
        self.subTitile.text = data.subtitle
        
    }
}
